repo.or.cz
/
andmenj-acm.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fucking accepted!
[andmenj-acm.git]
/
11115 - Uncle Jack
/
11115.cpp
blob
4d9c304d5cd85a6e660a82605eac194924ca4680
1
#include <iostream>
2
#include <cassert>
3
4
using namespace
std
;
5
6
int
main
(){
7
int
n
,
d
;
8
while
(
cin
>>
n
>>
d
&& (
n
+
d
)){
9
assert
(
n
!=
10
||
d
!=
25
);
10
unsigned long long
r
=
1
;
11
for
(
int
i
=
1
;
i
<=
d
; ++
i
){
12
r
*=
n
;
13
}
14
cout
<<
r
<<
endl
;
15
}
16
}